Calculate the Equivalent resistance in the circuit